const Koa = require('koa')
const mongoose = require('mongoose');
const app = new Koa()
const {
    connect,initSchemas
} = require('./database/init.js')
;(async()=>{
    await connect();
    initSchemas();
    require('./tasks/movie.js')
})();
app.use(async (ctx) => {
    ctx.body = '<h1>hello Koa2</h1>'
})

app.listen(3000)